import java.util.PriorityQueue;

import fri.pipt.agent.deathrow.Pos2;
import fri.pipt.agent.deathrow.path.PathNode;


public class TestPriorityQueue
{
	public static void main(String[] args)
	{
		int st = (int)Math.round(Math.random()*10) + 2;
		PriorityQueue<PathNode> pq = new PriorityQueue<PathNode>();
		for(int i = 0; i < st; i++)
		{
			PathNode pn = new PathNode(new Pos2(), (int)Math.round(i * Math.random()*100));
			pq.add(pn);
		}
		
		PathNode pn;
		while(pq.size() > 0)
		{
			pn = pq.poll();
			System.out.println(pn.dist);
		}
	}
}
